package jihyun51.swing;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Join_Layout extends JDialog {

	private final JPanel contentPanel = new JPanel();
	private JTextField idField;
	private JTextField pwdField;
	private JTextField pwdokField;
	private JTextField facnoField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			Join_Layout dialog = new Join_Layout();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public Join_Layout() {
		setBounds(100, 100, 640, 480);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(new BorderLayout(0, 0));
		{
			JPanel center = new JPanel();
			contentPanel.add(center, BorderLayout.CENTER);
			JLabel iId = new JLabel("아이디");
			idField = new JTextField();
			idField.setColumns(10);
			pwdField = new JTextField();
			pwdField.setColumns(10);
			JLabel label = new JLabel("비밀번호");
			JLabel label_1 = new JLabel("비밀번호 확인");
			pwdokField = new JTextField();
			pwdokField.setColumns(10);
			JLabel label_2 = new JLabel("사업자 번호");
			facnoField = new JTextField();
			facnoField.setColumns(10);
			JButton btnNewButton = new JButton(" 중복확인 ");
			JLabel label_3 = new JLabel(" - 제외 입력");
			GroupLayout gl_center = new GroupLayout(center);
			gl_center.setHorizontalGroup(
				gl_center.createParallelGroup(Alignment.LEADING)
					.addGroup(gl_center.createSequentialGroup()
						.addGap(71)
						.addGroup(gl_center.createParallelGroup(Alignment.LEADING)
							.addComponent(label_2, GroupLayout.PREFERRED_SIZE, 76, GroupLayout.PREFERRED_SIZE)
							.addGroup(gl_center.createSequentialGroup()
								.addGroup(gl_center.createParallelGroup(Alignment.LEADING)
									.addComponent(label_1)
									.addComponent(label, GroupLayout.PREFERRED_SIZE, 59, GroupLayout.PREFERRED_SIZE)
									.addComponent(iId))
								.addGap(47)
								.addGroup(gl_center.createParallelGroup(Alignment.LEADING)
									.addComponent(pwdField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
									.addGroup(gl_center.createSequentialGroup()
										.addGroup(gl_center.createParallelGroup(Alignment.LEADING)
											.addComponent(idField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
											.addGroup(gl_center.createSequentialGroup()
												.addGap(1)
												.addGroup(gl_center.createParallelGroup(Alignment.LEADING)
													.addComponent(facnoField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
													.addComponent(pwdokField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))
										.addGap(33)
										.addGroup(gl_center.createParallelGroup(Alignment.LEADING)
											.addComponent(label_3)
											.addComponent(btnNewButton))))))
						.addContainerGap(173, Short.MAX_VALUE))
			);
			gl_center.setVerticalGroup(
				gl_center.createParallelGroup(Alignment.LEADING)
					.addGroup(gl_center.createSequentialGroup()
						.addGap(33)
						.addGroup(gl_center.createParallelGroup(Alignment.TRAILING)
							.addGroup(gl_center.createSequentialGroup()
								.addComponent(iId)
								.addGap(27)
								.addComponent(label)
								.addGap(29)
								.addComponent(label_1))
							.addGroup(gl_center.createSequentialGroup()
								.addGroup(gl_center.createParallelGroup(Alignment.TRAILING)
									.addComponent(btnNewButton)
									.addComponent(idField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
								.addGroup(gl_center.createSequentialGroup()
									.addGap(21)
									.addComponent(pwdField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
								.addGap(23)
								.addComponent(pwdokField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
						.addGap(18)
						.addGroup(gl_center.createParallelGroup(Alignment.TRAILING)
							.addGroup(gl_center.createParallelGroup(Alignment.BASELINE)
								.addComponent(facnoField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(label_3))
							.addComponent(label_2))
						.addContainerGap(184, Short.MAX_VALUE))
			);
			center.setLayout(gl_center);
		}
		{
			JPanel bottom = new JPanel();
			contentPanel.add(bottom, BorderLayout.SOUTH);
			{
				JButton okbtn = new JButton(" 등록 ");
				bottom.add(okbtn);
			}
		}
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
		}
	}

}
